package com.edu.mapper;

import com.edu.javaBean.RegistLevel;
import com.edu.javaBean.Register;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RegisterMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Register record);

    int insertSelective(Register record);

    Register selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Register record);

    int updateByPrimaryKey(Register record);
    //获取最大病历号
    String getMaxCaseNum();

    int getExsitsQuota(@Param("visitedate") String visitedate,@Param("noon") String noon,@Param("userid") int userid);

    List<Register> getWaitingRegs(@Param("userid") Integer id);
}